package com.example.demo.service;

import com.example.demo.dao.GoodsCategoryDao;
import com.example.demo.entity.GoodsCategory;

import java.util.List;

public interface GoodsCategoryService {

    GoodsCategoryDao getGoodsCategoryDao();

    GoodsCategory getById(Integer id);

    GoodsCategory getByEntity(GoodsCategory goodsCategory);

    List<GoodsCategory> listByEntity(GoodsCategory goodsCategory);

    List<GoodsCategory> listByIds(List<Integer> ids);

    int insert(GoodsCategory goodsCategory);

    int insertBatch(List<GoodsCategory> list);

    int update(GoodsCategory goodsCategory);

    int updateBatch(List<GoodsCategory> list);

    int deleteById(Integer id);

    int deleteByEntity(GoodsCategory goodsCategory);

    int deleteByIds(List<Integer> list);

    int countAll();

    int countByEntity(GoodsCategory goodsCategory);
}
